package com.djx.provider.feign;

import com.djx.provider.feign.hystrix.SayHelloFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dingjunxiong
 */
@FeignClient(value = "HYSTRIX-9200", fallback = SayHelloFeignFallBack.class)
public interface SayHelloFeign {

    /**
     * 测试hystrix熔断器
     * @param name
     * @return
     */
    @PostMapping(value = "/sayHello")
    String sayHello(@RequestParam("name") String name);
}
